package com.topscore.uke.ui.loadsir_callback;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.kingja.loadsir.callback.Callback;
import com.topscore.uke.R;

/**
 * Created by 71468 on 2017/10/16.
 */

public class ErrorCallBack extends Callback {

    @Override
    protected void onViewCreate(Context context, View view) {
        super.onViewCreate(context, view);
    }

    @Override
    protected int onCreateView() {
        return R.layout.load_fail_layout;
    }

    @Override
    protected boolean onRetry(Context context, View view) {
        return false;
    }

    public void setMessage(String message){
        TextView message_tv = (TextView) getRootView().findViewById(R.id.message_tv);
        message_tv.setText(message);
    }
}
